/**
 * @Title: settle_router.js
 * @Description: 结算指标router
 * Copyright: Copyright (c) 2014 
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @author QIANDUO875
 * @date 2014年9月25日 下午2:01:05
 * @version V1.0
 */
;
(function(){
	'use strict';
	
	var app = angular.module('fwa.routers');
	app.config(['BaseURL','Config', function(baseUrl,Config){
		
		var states = Config.states;
		
	        
	        /**
	         * 考评规则设置
	         */
	        states.push({
				name:'evaluationRule',
		        url:'/evaluationRule',
		        data:{
		        	title:'考评规则设置',
		        	tabRoot:'evaluationRule',
		        	auth:'evaluationRule'
		        },
		        deepStateRedirect: true,
		        sticky: true,
		        views:{
		            'evaluationRule@':{
		            	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationRule/evaluationRule_view.html',
		            	controller:'EvaluationRuleCtrl'
		            }
		        }
			});
	        /**
	         * 医疗机构考评规则
	         */
	        states.push({
				name:'evaluationRule.orgRule',
		        url:'/orgRule',
		        data:{
		        	title:'考评规则设置',
		        	tabRoot:'evaluationRule',
		        	auth:'evaluationRule.orgRule'
		        },
		        views:{
		            '@evaluationRule':{
		            	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationRule/orgRule_view.html',
		            	controller:'OrgRuleCtrl'
		            }
		        }
			});
	        
	        /**
	         *  药店考评规则
	         */
	        states.push({
				name:'evaluationRule.drugstore',
		        url:'/drugstore',
		        data:{
		        	title:'考评规则设置',
		        	tabRoot:'evaluationRule',
		        	auth:'evaluationRule.drugstore'
		        },
		        views:{
		            '@evaluationRule':{
		            	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationRule/drugstoreRule_view.html',
		            	controller:'DrugstoreRuleCtrl'
		            }
		        }
			});
	        
	        
	}]);
	
})();